package com.zjw.xm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author zjw1
 * @since 2022-08-03
 */
@TableName("cr_user")
public class CrUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private List<CrBook> crBooks;
    public List<CrBook> getCrBooks() { return crBooks; }
    public void setCrBooks(List<CrBook> crBooks) { this.crBooks = crBooks; }


    @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

    private String account;

    private String name;

    private String pwd;

    private String gender;

    private LocalDate birthday;

    private String address;

    private String phone;

      /**
     * 毕业院校
     */
      private String email;

    private String school;

      /**
     * 学历
     */
      private String education;

      /**
     * 专业
     */
      private String profession;

      /**
     * 职位
     */
      private String job;

      private String pcode;

    
    public Integer getId() {
        return id;
    }

      public void setId(Integer id) {
          this.id = id;
      }
    
    public String getAccount() {
        return account;
    }

      public void setAccount(String account) {
          this.account = account;
      }
    
    public String getName() {
        return name;
    }

      public void setName(String name) {
          this.name = name;
      }
    
    public String getPwd() {
        return pwd;
    }

      public void setPwd(String pwd) {
          this.pwd = pwd;
      }
    
    public String getGender() {
        return gender;
    }

      public void setGender(String gender) {
          this.gender = gender;
      }
    
    public LocalDate getBirthday() {
        return birthday;
    }

      public void setBirthday(LocalDate birthday) {
          this.birthday = birthday;
      }
    
    public String getAddress() {
        return address;
    }

      public void setAddress(String address) {
          this.address = address;
      }
    
    public String getPhone() {
        return phone;
    }

      public void setPhone(String phone) {
          this.phone = phone;
      }
    
    public String getEmail() {
        return email;
    }

      public void setEmail(String email) {
          this.email = email;
      }
    
    public String getSchool() {
        return school;
    }

      public void setSchool(String school) {
          this.school = school;
      }
    
    public String getEducation() {
        return education;
    }

      public void setEducation(String education) {
          this.education = education;
      }
    
    public String getProfession() {
        return profession;
    }

      public void setProfession(String profession) {
          this.profession = profession;
      }
    
    public String getJob() {
        return job;
    }

      public void setJob(String job) {
          this.job = job;
      }

    public String getPcode() {
        return pcode;
    }

    public void setPcode(String pcode) {
        this.pcode = pcode;
    }

    @Override
    public String toString() {
        return "CrUser{" +
              "id=" + id +
                  ", account=" + account +
                  ", name=" + name +
                  ", pwd=" + pwd +
                  ", gender=" + gender +
                  ", birthday=" + birthday +
                  ", address=" + address +
                  ", phone=" + phone +
                  ", email=" + email +
                  ", school=" + school +
                  ", education=" + education +
                  ", profession=" + profession +
                  ", job=" + job +
              "}";
    }
}
